package com.dragonsky.shop.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragonsky.shop.user.entity.BasicEntity;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author dragon
 * @since 2025-03-22 00:13:28
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user")
public class User extends BasicEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名称
     */
    @TableField("user_name")
    private String userName;

    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 参数键值
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 状态（1正常 0禁用）
     */
    @TableField("status")
    private Byte status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String MOBILE = "mobile";

    public static final String BALANCE = "balance";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";
}
